#ifndef BEZIER_H_
#define BEZIER_H_

#include <vector>
#include <iostream>
#include "BezierCubSurf.h"

#define TAMMATBEZIER 7

using std::vector;

class Bezier{
	public:
		Bezier(GLfloat ctrlpoints[TAMMATBEZIER][TAMMATBEZIER][3]);
		~Bezier();

		void drawSurface(glm::mat4 mat);
		void drawControlPoints();
		void drawNormals(glm::mat4);

	private:
		vector<BezierCubSurf*> patches;

		void loadPatches(GLfloat points[TAMMATBEZIER][TAMMATBEZIER][3]);
		void show(GLfloat aux[TAMPATCHBEZIER][TAMPATCHBEZIER][3]);
};

#endif
